function removed = removeRepeated(pie)
    ii = 1;
    s = size(pie);
    rows = s(1);
    cols = s(2);
    removed = zeros(1, cols);
    for row = 1:rows-1
        temp = pie(row, :);
        if sum(temp == pie(row+1, :))==3
            continue;
        end
        removed(ii, :) = temp;
        ii = ii + 1;
    end
    removed(ii, :) = pie(rows, :);

